home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMSVGAngle.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  7KB  |  191 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMSVGAngle.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMSVGAngle_h__
  6. #define __gen_nsIDOMSVGAngle_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMSVGAngle */
  19. #define NS_IDOMSVGANGLE_IID_STR "58b6190e-37b3-412a-ba02-1d5ad6c6ea7c"
  20.  
  21. #define NS_IDOMSVGANGLE_IID \
  22.   {0x58b6190e, 0x37b3, 0x412a, \
  23.     { 0xba, 0x02, 0x1d, 0x5a, 0xd6, 0xc6, 0xea, 0x7c }}
  24.  
  25. /**
  26.  * The nsIDOMSVGAngle interface is the interface to an SVG angle.
  27.  *
  28.  * For more information on this interface please see
  29.  * http://www.w3.org/TR/SVG11/types.html#InterfaceSVGAngle
  30.  *
  31.  */
  32. class NS_NO_VTABLE nsIDOMSVGAngle : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMSVGANGLE_IID)
  36.  
  37.   enum { SVG_ANGLETYPE_UNKNOWN = 0U };
  38.  
  39.   enum { SVG_ANGLETYPE_UNSPECIFIED = 1U };
  40.  
  41.   enum { SVG_ANGLETYPE_DEG = 2U };
  42.  
  43.   enum { SVG_ANGLETYPE_RAD = 3U };
  44.  
  45.   enum { SVG_ANGLETYPE_GRAD = 4U };
  46.  
  47.   /* readonly attribute unsigned short unitType; */
  48.   NS_IMETHOD GetUnitType(PRUint16 *aUnitType) = 0;
  49.  
  50.   /* attribute float value; */
  51.   NS_IMETHOD GetValue(float *aValue) = 0;
  52.   NS_IMETHOD SetValue(float aValue) = 0;
  53.  
  54.   /* attribute float valueInSpecifiedUnits; */
  55.   NS_IMETHOD GetValueInSpecifiedUnits(float *aValueInSpecifiedUnits) = 0;
  56.   NS_IMETHOD SetValueInSpecifiedUnits(float aValueInSpecifiedUnits) = 0;
  57.  
  58.   /* attribute DOMString valueAsString; */
  59.   NS_IMETHOD GetValueAsString(nsAString & aValueAsString) = 0;
  60.   NS_IMETHOD SetValueAsString(const nsAString & aValueAsString) = 0;
  61.  
  62.   /* void newValueSpecifiedUnits (in unsigned short unitType, in float valueInSpecifiedUnits); */
  63.   NS_IMETHOD NewValueSpecifiedUnits(PRUint16 unitType, float valueInSpecifiedUnits) = 0;
  64.  
  65.   /* void convertToSpecifiedUnits (in unsigned short unitType); */
  66.   NS_IMETHOD ConvertToSpecifiedUnits(PRUint16 unitType) = 0;
  67.  
  68. };
  69.  
  70. /* Use this macro when declaring classes that implement this interface. */
  71. #define NS_DECL_NSIDOMSVGANGLE \
  72.   NS_IMETHOD GetUnitType(PRUint16 *aUnitType); \
  73.   NS_IMETHOD GetValue(float *aValue); \
  74.   NS_IMETHOD SetValue(float aValue); \
  75.   NS_IMETHOD GetValueInSpecifiedUnits(float *aValueInSpecifiedUnits); \
  76.   NS_IMETHOD SetValueInSpecifiedUnits(float aValueInSpecifiedUnits); \
  77.   NS_IMETHOD GetValueAsString(nsAString & aValueAsString); \
  78.   NS_IMETHOD SetValueAsString(const nsAString & aValueAsString); \
  79.   NS_IMETHOD NewValueSpecifiedUnits(PRUint16 unitType, float valueInSpecifiedUnits); \
  80.   NS_IMETHOD ConvertToSpecifiedUnits(PRUint16 unitType); 
  81.  
  82. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  83. #define NS_FORWARD_NSIDOMSVGANGLE(_to) \
  84.   NS_IMETHOD GetUnitType(PRUint16 *aUnitType) { return _to GetUnitType(aUnitType); } \
  85.   NS_IMETHOD GetValue(float *aValue) { return _to GetValue(aValue); } \
  86.   NS_IMETHOD SetValue(float aValue) { return _to SetValue(aValue); } \
  87.   NS_IMETHOD GetValueInSpecifiedUnits(float *aValueInSpecifiedUnits) { return _to GetValueInSpecifiedUnits(aValueInSpecifiedUnits); } \
  88.   NS_IMETHOD SetValueInSpecifiedUnits(float aValueInSpecifiedUnits) { return _to SetValueInSpecifiedUnits(aValueInSpecifiedUnits); } \
  89.   NS_IMETHOD GetValueAsString(nsAString & aValueAsString) { return _to GetValueAsString(aValueAsString); } \
  90.   NS_IMETHOD SetValueAsString(const nsAString & aValueAsString) { return _to SetValueAsString(aValueAsString); } \
  91.   NS_IMETHOD NewValueSpecifiedUnits(PRUint16 unitType, float valueInSpecifiedUnits) { return _to NewValueSpecifiedUnits(unitType, valueInSpecifiedUnits); } \
  92.   NS_IMETHOD ConvertToSpecifiedUnits(PRUint16 unitType) { return _to ConvertToSpecifiedUnits(unitType); } 
  93.  
  94. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  95. #define NS_FORWARD_SAFE_NSIDOMSVGANGLE(_to) \
  96.   NS_IMETHOD GetUnitType(PRUint16 *aUnitType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnitType(aUnitType); } \
  97.   NS_IMETHOD GetValue(float *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  98.   NS_IMETHOD SetValue(float aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  99.   NS_IMETHOD GetValueInSpecifiedUnits(float *aValueInSpecifiedUnits) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueInSpecifiedUnits(aValueInSpecifiedUnits); } \
  100.   NS_IMETHOD SetValueInSpecifiedUnits(float aValueInSpecifiedUnits) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValueInSpecifiedUnits(aValueInSpecifiedUnits); } \
  101.   NS_IMETHOD GetValueAsString(nsAString & aValueAsString) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueAsString(aValueAsString); } \
  102.   NS_IMETHOD SetValueAsString(const nsAString & aValueAsString) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValueAsString(aValueAsString); } \
  103.   NS_IMETHOD NewValueSpecifiedUnits(PRUint16 unitType, float valueInSpecifiedUnits) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewValueSpecifiedUnits(unitType, valueInSpecifiedUnits); } \
  104.   NS_IMETHOD ConvertToSpecifiedUnits(PRUint16 unitType) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertToSpecifiedUnits(unitType); } 
  105.  
  106. #if 0
  107. /* Use the code below as a template for the implementation class for this interface. */
  108.  
  109. /* Header file */
  110. class nsDOMSVGAngle : public nsIDOMSVGAngle
  111. {
  112. public:
  113.   NS_DECL_ISUPPORTS
  114.   NS_DECL_NSIDOMSVGANGLE
  115.  
  116.   nsDOMSVGAngle();
  117.  
  118. private:
  119.   ~nsDOMSVGAngle();
  120.  
  121. protected:
  122.   /* additional members */
  123. };
  124.  
  125. /* Implementation file */
  126. NS_IMPL_ISUPPORTS1(nsDOMSVGAngle, nsIDOMSVGAngle)
  127.  
  128. nsDOMSVGAngle::nsDOMSVGAngle()
  129. {
  130.   /* member initializers and constructor code */
  131. }
  132.  
  133. nsDOMSVGAngle::~nsDOMSVGAngle()
  134. {
  135.   /* destructor code */
  136. }
  137.  
  138. /* readonly attribute unsigned short unitType; */
  139. NS_IMETHODIMP nsDOMSVGAngle::GetUnitType(PRUint16 *aUnitType)
  140. {
  141.     return NS_ERROR_NOT_IMPLEMENTED;
  142. }
  143.  
  144. /* attribute float value; */
  145. NS_IMETHODIMP nsDOMSVGAngle::GetValue(float *aValue)
  146. {
  147.     return NS_ERROR_NOT_IMPLEMENTED;
  148. }
  149. NS_IMETHODIMP nsDOMSVGAngle::SetValue(float aValue)
  150. {
  151.     return NS_ERROR_NOT_IMPLEMENTED;
  152. }
  153.  
  154. /* attribute float valueInSpecifiedUnits; */
  155. NS_IMETHODIMP nsDOMSVGAngle::GetValueInSpecifiedUnits(float *aValueInSpecifiedUnits)
  156. {
  157.     return NS_ERROR_NOT_IMPLEMENTED;
  158. }
  159. NS_IMETHODIMP nsDOMSVGAngle::SetValueInSpecifiedUnits(float aValueInSpecifiedUnits)
  160. {
  161.     return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163.  
  164. /* attribute DOMString valueAsString; */
  165. NS_IMETHODIMP nsDOMSVGAngle::GetValueAsString(nsAString & aValueAsString)
  166. {
  167.     return NS_ERROR_NOT_IMPLEMENTED;
  168. }
  169. NS_IMETHODIMP nsDOMSVGAngle::SetValueAsString(const nsAString & aValueAsString)
  170. {
  171.     return NS_ERROR_NOT_IMPLEMENTED;
  172. }
  173.  
  174. /* void newValueSpecifiedUnits (in unsigned short unitType, in float valueInSpecifiedUnits); */
  175. NS_IMETHODIMP nsDOMSVGAngle::NewValueSpecifiedUnits(PRUint16 unitType, float valueInSpecifiedUnits)
  176. {
  177.     return NS_ERROR_NOT_IMPLEMENTED;
  178. }
  179.  
  180. /* void convertToSpecifiedUnits (in unsigned short unitType); */
  181. NS_IMETHODIMP nsDOMSVGAngle::ConvertToSpecifiedUnits(PRUint16 unitType)
  182. {
  183.     return NS_ERROR_NOT_IMPLEMENTED;
  184. }
  185.  
  186. /* End of implementation class template. */
  187. #endif
  188.  
  189.  
  190. #endif /* __gen_nsIDOMSVGAngle_h__ */
  191.